//
//  MyCell.m
//  LoLBox
//
//  Created by lanou3g on 15/5/29.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell





-(instancetype)initWithFrame:(CGRect)frame


{

    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 50, 50)];
        
        _imageView.backgroundColor = [UIColor whiteColor];
        
        [self.contentView addSubview:_imageView];
        
        
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(55, 0, 80, 15)];
        
        _label.font = [UIFont systemFontOfSize:13];
        
        //self.label.font = [UIFont fontWithName:@"STXINGKA" size:13];
        
        [_imageView addSubview:_label];
        
        
        
        self.label1 = [[UILabel alloc]initWithFrame:CGRectMake(55, 17.5, 80, 15)];
        
//        _label1.textColor = [UIColor colorWithRed:(250.0/255.0) green:(250.0/255.0) blue:(245.0/255.0) alpha:1.0];
        
        _label1.textColor = [UIColor grayColor];
        
        _label1.font = [UIFont systemFontOfSize:12];
        
        [_imageView addSubview:_label1];
        
        

        self.label2 = [[UILabel alloc]initWithFrame:CGRectMake(55, 35, 40, 15)];
        
        _label2.font = [UIFont systemFontOfSize:12];
        
        _label2.textColor = [UIColor magentaColor];
        
        [_imageView addSubview:_label2];
        
        

        self.label3 = [[UILabel alloc]initWithFrame:CGRectMake(95, 35, 40, 15)];
        
        _label3.font = [UIFont systemFontOfSize:12];
        
        _label3.textColor = [UIColor magentaColor];
        
        [_imageView addSubview:_label3];

        
    }
    return self;
}

-(void)setModle:(ModleCell *)modle
{

    self.label.text = modle.nick;

    self.label1.text = modle.name;
    
    self.label2.text = modle.tag2;
    
    self.label3.text = modle.tag3;
    
    self.imageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"%@.png",modle.en_name]];
    
//    [self.imageView sd_setImageWithURL:[NSURL URLWithString:@"http://ossweb-img.qq.com/upload/qqtalk/lol_hero/hero_img.zip"]];
}














@end
